/**
 * 
 */
package net.wisos.opn.dao;

import net.wisos.opn.cms.entity.News;
import net.wisos.opn.cms.entity.Channel;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.repository.PagingAndSortingRepository;


/**
 * @author Liuye
 * 
 */
public interface ProductDao extends PagingAndSortingRepository<News, Long> {
	News findByName(String name);

	Page<News> findByCategory(Channel category, Pageable pageable);
}
